#ifndef MYTREEWIDGETITEM_H
#define MYTREEWIDGETITEM_H

#include <QWidget>
#include "publicstruct.h"

namespace Ui {
class MyTreeWidgetItem;
}

class MyTreeWidgetItem : public QWidget
{
    Q_OBJECT

public:
    explicit MyTreeWidgetItem(struct st_treeItem data,QWidget *parent = nullptr);
    ~MyTreeWidgetItem();


    int getNoread_flag() const;
    void setNoread_flag(int newNoread_flag);

signals:
    void sig_noread_flag(int);

private:
    Ui::MyTreeWidgetItem *ui;
    int noread_flag;            // 0-未读 1-已读
};

#endif // MYTREEWIDGETITEM_H
